package com.wcbtest.dem02.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "进程信息")
public class ProcessInfo {

    @ApiModelProperty(value = "进程ID", example = "1234")
    private int pid;

    @ApiModelProperty(value = "用户", example = "root")
    private String user;

    @ApiModelProperty(value = "CPU使用率百分比", example = "50.0")
    private double cpu;

    @ApiModelProperty(value = "内存使用率百分比", example = "25.0")
    private double mem;

    @ApiModelProperty(value = "虚拟内存(KB)", example = "102400")
    private long vsz;

    @ApiModelProperty(value = "常驻内存(KB)", example = "51200")
    private long rss;

    @ApiModelProperty(value = "进程状态", example = "S")
    private String status;

    @ApiModelProperty(value = "运行时间", example = "0:01")
    private String time;

    @ApiModelProperty(value = "命令", example = "java -jar app.jar")
    private String command;
}    